import { Entity, PrimaryGeneratedColumn, Column, PrimaryColumn, BaseEntity } from "typeorm"
import { GameConfig } from "../../src/config/GameConfig"

@Entity("t_users")
export class UserEntity{

    @PrimaryGeneratedColumn({type:"bigint"})
    userid: number
    @Column()
    account: string = ""
    @Column()
    nick_name: string = ""
    @Column()
    sex: number = GameConfig.Sex_Type.Mail
    @Column()
    headimgurl: string = ""
    @Column()
    ip: string = ""
    @Column("datetime", { nullable: true })
    create_time: string = ""
    @Column("datetime", { nullable: true })
    last_login_time: string = ""
    @Column()
    status: number = GameConfig.Status_Type.Normal


  


}